<?php
require_once 'Zend/Cache.php';
require_once 'Zend/Registry.php';

$frontendOptions = array(
   'lifetime' => NULL, // cache lifetime of 2 hours
   'automatic_serialization' => true
);

$backendOptions = array(
    'cache_dir' => '../tmp/' // Directory where to put the cache files
);

// getting a Zend_Cache_Core object
$CACHE = Zend_Cache::factory('Core', 'File', $frontendOptions, $backendOptions);

Zend_Registry::set('cache',$CACHE);

